package com.front.frontdemo.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * 时间流逝url页面映射
 * @author Raines
 */
@Controller
public class DairyWeb {

    /**
     * 时间流逝分页界面
     * @return
     */
    @GetMapping(value = "/dairy")
    public String dairy(){
        return "dairy/dairy";
    }

    /**
     * 新增界面
     * @return
     */
    @GetMapping(value = "/dairyAdd")
    public String dairyAdd(){
        return "dairy/form/dairyAdd";
    }

    /**
     * 修改界面
     * @return
     */
    @GetMapping(value = "/dairyUpdate")
    public String dairyUpdate(Map<String, Object> map, Integer id){
        map.put("id",id);
        return "dairy/form/dairyUpdate";
    }


}
